package com.geqian.web.controller;

import com.geqian.common.common.ResponseResult;
import com.geqian.web.entity.SysIcon;
import com.geqian.web.service.SysIconService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author geqian
 * @date 21:10 2023/11/12
 */
@RestController
@RequestMapping("/icon")
@Api(tags = "系统图标")
public class IconController {
    
    @Resource
    private SysIconService sysIconService;

    @ApiOperation("获取图标icon")
    @GetMapping("/getIcons")
    public ResponseResult<List<SysIcon>> getIcons(){
        return sysIconService.getIcons();
    }

}
